var t = require("../../utils/http.js"),
  n =
    (require("../../utils/api.js"),
    require("../../utils/language/switchLanguage.js"));
Page({
  data: { content: "" },
  onLoad: function (t) {
    this.initLanguage();
    var n = t.orderType,
      e = t.teamType;
    0 == n ? this.getUniversalTicketConfig() : this.getTeamConfig({ type: e });
  },
  initLanguage: function () {
    var t = n.languageVersion(wx.getStorageSync("language"));
    this.setData({ _t: t, languageType: wx.getStorageSync("language") }),
      wx.setNavigationBarTitle({ title: t["退票规则"] });
  },
  getUniversalTicketConfig: function () {
    var n = this;
    t.getUniversalTicketConfig().then(function (t) {
      var e =
        0 == n.data.languageType ? t.data.refundNotes : t.data.refundNotesEn;
      n.setData({ content: e });
    });
  },
  getTeamConfig: function (n) {
    var e = this;
    t.getTeamConfig(n).then(function (t) {
      var n =
        0 == e.data.languageType ? t.data.refundNotes : t.data.refundNotesEn;
      e.setData({ content: n });
    });
  },
  onReady: function () {},
  onShow: function () {},
  onHide: function () {},
  onUnload: function () {},
  onPullDownRefresh: function () {},
  onReachBottom: function () {},
});
